<%@include file="menu/util.jsp" %>
<%@page contentType="text/html; charset=iso-8859-1" pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <fmt:bundle basename="app">
        <head>
            <title><fmt:message key="login.title.tag" /></title>
            <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
            <jsp:include page="menu/header.jsp" />
            <%-- remember to name the variables the same as the attributes --%>
            <c:set var="listMap" value="${requestScope.listMap}" />
            <c:set var="scoreCardScore" value="${requestScope.scoreCardScore}" />

        </head>
        <body>

            <%-- this is how you use an object properties with jstl --%>


            <table border="1">
                <c:forEach var="map" items="${listMap}">
                    <tr>
                        <td>
                            Map
                        </td>
                        <td>
                            Score
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <a href="drillScoreCard.do?scoreCard=${map.idScoreCard}"><c:out value="${map.name}" /></a>

                        </td>
                        <td>
                            <c:set var="score" value="${scoreCardScore[map]}" />
                            <fmt:formatNumber type="percent" value="${score}" />
                        </td>
                    </tr>
                </c:forEach>
            </table>

        </body>
    </fmt:bundle>
</html>
